/**
 * 
 */
package com.redoor.iot.security;

import java.util.Collection;
import java.util.List;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

/**
 * 这里的User“不是”用户表t_sys_user实体对象
 * 是org.springframework.security.core.userdetails.User
 * 是实现了spring security中UserDetails
 * @author Administrator
 *
 */
public class MyUser extends User {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1433296114697644438L;

	/**
	 * 登录成功用户信息
	 */
	private String loginUserStr;
	
	/**
	 * 当前用户拥有的url资源权限
	 */
	private List<String> passUrls;

	public MyUser(String username, String password, boolean enabled, boolean accountNonExpired,
			boolean credentialsNonExpired, boolean accountNonLocked,
			Collection<? extends GrantedAuthority> authorities,String loginUserStr,List<String> passUrls) {
		super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
		this.loginUserStr=loginUserStr;
		this.passUrls = passUrls;
	}

	public String getLoginUserStr() {
		return loginUserStr;
	}

	public void setLoginUserStr(String loginUserStr) {
		this.loginUserStr = loginUserStr;
	}

	public List<String> getPassUrls() {
		return passUrls;
	}

	public void setPassUrls(List<String> passUrls) {
		this.passUrls = passUrls;
	}
	
	

	
	

}
